package top.infopub.mgr.bpa.service.impl;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.SubpackCotDetailDao;
import top.infopub.mgr.bpa.domain.SubpackCotDetailAndSubDomain;
import top.infopub.model.bpa.SubpackCotDetail;
import top.infopub.mgr.bpa.service.SubpackCotDetailService;

@Service
public class SubpackCotDetailServiceImpl extends GenericServiceImpl<SubpackCotDetail, String> implements
		SubpackCotDetailService {

	@Autowired
	private SubpackCotDetailDao subpackCotDetailDao;
	
	@Override
	public GenericDao<SubpackCotDetail, String> getDao() {
		return subpackCotDetailDao;
	}

    @Override
    public List<SubpackCotDetailAndSubDomain> selectBySubpackCotId(String subpackCotId) {
        return subpackCotDetailDao.selectBySubpackCotId(subpackCotId);
    }

    @Override
    public BigDecimal selectRateFromSubpackCot(Map<String, Object> where) {
        return subpackCotDetailDao.selectRateFromSubpackCot(where);
    }

}